<?php 

	function get_possible_status(){
		return array("TODO","NEED FIX","NEED OPTIMIZING","NEED CODE QUALITY CHECK","DONE");
	}

	function save_file($filepath, $content){
		$f = fopen($filepath, 'w') or die("can't open file");
		fwrite($f, $content);
		fclose($f);
	}
	
	function load_file($filepath){
		$f = fopen($filepath, 'r') or die("can't open file");
		$content = fread($f, filesize($filepath));
		fclose($f);
		return $content;
	}
	
	function test_solution($solutionID){
		$command = "python judge.py $solutionID ";
		$command = $command . get_solution_problemID($solutionID);
		exec($command . " > /dev/null &");
	}
?>
